﻿using System;
using System.Collections.Generic;
using System.Text;

using libReadWrite;
using libCommonClass;

namespace TTServer.Messages
{
    public class FileDetailsRequestMessage : TTMessage
    {
        private string _filePath;

        public string FilePath
        {
            get { return _filePath; }
            set { _filePath = value; }
        }


        public override void ReadMessage(BigEndianReader sr)
        {
            _filePath = sr.ReadString();
        }

        public override void WriteMessage(BigEndianWriter sw)
        {
            throw new NotImplementedException();
        }

        public override TTMessage Clone()
        {
            return new FileDetailsRequestMessage();
        }

        public override int GetMessageID()
        {
            return MessageKind.FILE_DETAILS_REQUEST;
        }

        public override string GetMessageName()
        {
            return "FileDetailsRequestMessage";
        }
    }
}
